import os;
import time;
import random # 导入随机模块
# #include <stdio.h>
# #include <math.h>
# int main()
# {
#     int sign = 1;
#     double pi = 0.0, n = 1.0, term = 1.0;
#     while (fabs(term) >= 1e-6)
#     {
#         pi = pi + term;
#         n = n + 2;
#         sign = -sign;
#         term = sign / n;
#     }
#     pi = pi * 4;
#     printf("pi=%10.8f\n",pi);
#     return 0;

# }

def  pi_calculate():

	S = 100
	N = 0
	for i in range(int(S)) :
		print(i)
		# x = random.random()
		# y = random.random()
		# d = (x-0.5)*(x-0.5)+(y-0.5)*(y-0.5)
		# # if d<=0.5*0.5:
		# if d<=0.25:
		# 	N = N+1
	PI = 4*N/S
	print(PI)
if __name__ == '__main__':
	# wifi_init();
	pi_calculate();


